﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using ULog.Filters;

namespace ULog.Controllers
{
    /// <summary>
    /// 所有ApiController基类
    /// </summary>
    //[APIAuthorizationFilter]
    //[APIActionFilter]
    [APIExceptionFilter]
    public class BaseApiController : ApiController
    {
        /// <summary>
        /// 当前登陆人
        /// </summary>
        protected string CurrentUser
        {
            get
            {
                return this.ActionContext.RequestContext.Principal.Identity.Name;
            }
        }
    }
}
